﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CMS.APP
{
    public class MessageWeb
    {
        #region Fields
        /// <summary>
        /// 计数器
        /// </summary>
        private decimal id;
        /// <summary>
        /// 计数器
        /// </summary>
        public decimal Id
        {
            get { return id; }
            //set { id = value; }
        }
        /// <summary>
        /// 新闻Id
        /// </summary>
        private decimal newsId;
        /// <summary>
        /// 新闻Id
        /// </summary>
        public decimal NewsId
        {
            get { return newsId; }
            //set { newsId = value; }
        }
        /// <summary>
        /// 作者
        /// </summary>
        private string writer;
        /// <summary>
        /// 作者
        /// </summary>
        public string Writer
        {
            get { return writer; }
            //set { writer = value; }
        }
        /// <summary>
        /// 时间
        /// </summary>
        private DateTime date;
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime Date
        {
            get { return date; }
            //set { date = value; }
        }
        /// <summary>
        /// 内容
        /// </summary>
        private string words;
        /// <summary>
        /// 内容
        /// </summary>
        public string Words
        {
            get { return words; }
            //set { words = value; }
        }
        /// <summary>
        /// 回复
        /// </summary>
        private string reply;
        /// <summary>
        /// 回复
        /// </summary>
        public string Reply
        {
            get { return reply; }
            //set { reply = value; }
        }
        /// <summary>
        /// 审核人
        /// </summary>
        private string judger;
        /// <summary>
        /// 审核人
        /// </summary>
        public string Judger
        {
            get { return judger; }
            //set { judger = value; }
        }
        /// <summary>
        /// 是否可见
        /// </summary>
        private MessageWebVisiable visiable;
        /// <summary>
        /// 是否可见
        /// </summary>
        public MessageWebVisiable Visiable
        {
            get { return visiable; }
            //set { visiable = value; }
        }
        #endregion Fields

        /// <summary>
        /// 网站留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="writer">作者</param>
        /// <param name="words">内容</param>
        public static int MakeMessage(decimal newsId, string writer, string words)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 评审留言
        /// </summary>
        /// <param name="messageId">留言Id</param>
        /// <param name="judger">评审者</param>
        /// <param name="agreeOrNot">是否同意</param>
        /// <param name="reply">回复</param>
        public static int JudgeReply(decimal messageId, string judger, bool agreeOrNot, string reply)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="messageId">留言Id</param>
        /// <param name="visiable">审核情况</param>
        public static MessageWeb ReadMessage(decimal messageId, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读最新留言
        /// </summary>
        /// <param name="howMany">数量</param>
        /// <param name="visiable">审核情况</param>
        public static List<MessageWeb> ReadMessages(int? howMany, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="howMany">数量</param>
        /// <param name="visiable">审核情况</param>
        public static List<MessageWeb> ReadMessagesbyNews(decimal newsId, int? howMany, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="writer">作者</param>
        /// <param name="howMany">数量</param>
        /// <param name="visiable">审核情况</param>
        public static List<MessageWeb> ReadMessagesbyWriter(string writer, int? howMany, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="judger">评审</param>
        /// <param name="howMany">数量</param>
        /// <param name="visiable">审核情况</param>
        public static List<MessageWeb> ReadMessagesbyJudger(string judger, int? howMany, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 阅读留言
        /// </summary>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        /// <param name="howMany">数量</param>
        /// <param name="visiable">审核情况</param>
        public static List<MessageWeb> ReadMessagesbyTime(DateTime? timeFrom, DateTime? timeTo, int? howMany, CMS.APP.MessageWebVisiable? visiable)
        {
            throw new System.NotImplementedException();
        }

        /// <summary>
        /// 搜索留言
        /// </summary>
        /// <param name="newsId">新闻Id</param>
        /// <param name="writer">作者</param>
        /// <param name="words">内容</param>
        /// <param name="judger">评审</param>
        /// <param name="reply">回复</param>
        /// <param name="visiable">审核情况</param>
        /// <param name="timeFrom">时间开始</param>
        /// <param name="timeTo">时间结束</param>
        public static List<MessageWeb> SearchMessages(decimal? newsId, string writer, string words, string judger, string reply, CMS.APP.MessageWebVisiable? visiable, DateTime? timeFrom, DateTime? timeTo)
        {
            throw new System.NotImplementedException();
        }
    }
}
